package com.cleaningcloud.cld.mapper;

import java.util.List;
import com.cleaningcloud.cld.domain.CldStaffComplaintReply;
import org.apache.ibatis.annotations.Delete;

/**
 * 员工投诉回复Mapper接口
 * 
 * @author cleaningcloud
 * @date 2024-10-27
 */
public interface CldStaffComplaintReplyMapper 
{
    /**
     * 查询员工投诉回复
     * 
     * @param staffComplaintReplyId 员工投诉回复主键
     * @return 员工投诉回复
     */
    CldStaffComplaintReply selectCldStaffComplaintReplyByStaffComplaintReplyId(Long staffComplaintReplyId);

    /**
     * 查询员工投诉回复列表
     * 
     * @param cldStaffComplaintReply 员工投诉回复
     * @return 员工投诉回复集合
     */
    List<CldStaffComplaintReply> selectCldStaffComplaintReplyList(CldStaffComplaintReply cldStaffComplaintReply);

    /**
     * 新增员工投诉回复
     * 
     * @param cldStaffComplaintReply 员工投诉回复
     * @return 结果
     */
    int insertCldStaffComplaintReply(CldStaffComplaintReply cldStaffComplaintReply);

    /**
     * 修改员工投诉回复
     * 
     * @param cldStaffComplaintReply 员工投诉回复
     * @return 结果
     */
    int updateCldStaffComplaintReply(CldStaffComplaintReply cldStaffComplaintReply);

    /**
     * 删除员工投诉回复
     * 
     * @param staffComplaintReplyId 员工投诉回复主键
     * @return 结果
     */
    int deleteCldStaffComplaintReplyByStaffComplaintReplyId(Long staffComplaintReplyId);

    /**
     * 批量删除员工投诉回复
     * 
     * @param staffComplaintReplyIds 需要删除的数据主键集合
     * @return 结果
     */
    int deleteCldStaffComplaintReplyByStaffComplaintReplyIds(Long[] staffComplaintReplyIds);


    /**
     * 删除员工投诉回复
     *
     * @param staffComplaintReplyId 员工投诉回复主键
     * @return 结果
     */
    @Delete("delete from cld_staff_complaint_reply where staff_complaint_id = #{staffComplaintId}")
    int deleteCldStaffComplaint(Long staffComplaintId);
}
